package com.imay.live.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by jeaman on 2017/4/13.
 */

public class MenuItemModel implements Parcelable {
    private int action;
    private int textId;
    private int descId;

    public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
        public MenuItemModel createFromParcel(Parcel in) {
            return new MenuItemModel(in);
        }

        public MenuItemModel[] newArray(int size) {
            return new MenuItemModel[size];
        }
    };

    public MenuItemModel() {
    }

    protected MenuItemModel(Parcel in) {
        action = in.readInt();
        textId = in.readInt();
        descId = in.readInt();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(action);
        dest.writeInt(textId);
        dest.writeInt(descId);
    }

    public MenuItemModel(int action, int textId,int descId) {
        this.action = action;
        this.textId = textId;
        this.descId = descId;
    }

    public MenuItemModel(int action, int textId) {
        this.action = action;
        this.textId = textId;
    }

    public int getAction() {
        return action;
    }

    public void setAction(int action) {
        this.action = action;
    }

    public int getTextId() {
        return textId;
    }

    public void setTextId(int textId) {
        this.textId = textId;
    }

    public int getDescId() {
        return descId;
    }

    public void setDescId(int descId) {
        this.descId = descId;
    }
}
